CC=gcc
CFLAGS=-Wall -DHAVE_LIBJPEG -g -pg
LDLIBS=-L/usr/X11R6/lib -lXaw -lXt -lX11 -ljpeg -I/usr/include 
OBJS =  process.o capture.o 

#all: xcaptest vidpanel vcat vctrl #testmp1e
all: $(OBJS) 
	@$(CC) $(CFLAGS) $(OBJS) $(LDLIBS)  -o capture
	@echo "finished"

capture.o :capture.c capture.h
	@$(CC) $(CFLAGS) -c $< -o $@
	@echo [$@]
process.o : process.c capture.h
	@$(CC) $(CFLAGS) -c $< -o $@
	@echo [$@]

clean :
	@rm capture
	@rm *.o
	@echo "clear"

test:
	@echo "testing...check /tmp"
	./capture -m

xcaptest: xcaptest.c
vidpanel: vidpanel.c
vcat: vcat.c
vctrl: vctrl.c
#testmp1e: testmp1e.c

